package cn.liuxiany.alibaba.flowable.controller;

import cn.liuxiany.alibaba.flowable.service.BpmProcessDefinitionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 工作流流程定义
 *
 * @author liuxiany
 * @date 2023/10/26
 */
@RestController
@RequestMapping("/bpm/process-definition")
public class BpmProcessDefinitionController {

    @Autowired
    private BpmProcessDefinitionService bpmDefinitionService;

    @GetMapping("getList")
    public Object getProcessDefinitionList(Integer suspensionState) {
        return bpmDefinitionService.getProcessDefinitionList(suspensionState);
    }
}
